package com.lu.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

public class User {
    //表单name属性和set方法后面的单词对应
    private String password;
    private String name;
    private List<String> hobby;
    private Address address;
    private  List<Address> list;
    //类型转换器,讲过默认格式转换成以下格式
   /* @DateTimeFormat(pattern = "yyyy-MM-dd")*/
    private Date date;

    public Date getDate() {
        return date;
    }

    @Override
    public String toString() {
        return "User{" +
                "password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", hobby=" + hobby +
                ", address=" + address +
                ", list=" + list +
                ", date=" + date +
                '}';
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public List<Address> getList() {
        return list;
    }

    public void setList(List<Address> list) {
        this.list = list;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPasswor(String password) {
        this.password = password;
    }

}
